<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String basePath = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>批量修改折扣率</title>
		<script language="javascript" type="text/javascript" src="<%=basePath%>/js/validatorTool.js"></script>
	    <script language="javascript" type="text/javascript" src="<%=basePath%>/js/utilTool.js"></script>
	    <link rel="stylesheet" type="text/css" href="<%=basePath%>/css/ebvp.css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/dialog.css">
	    <link rel="stylesheet" type="text/css" href="<%=basePath%>/css/main.css">
		<script language="javascript" type="text/javascript"> 
			function confirmMd(obj){			   
				var val = document.getElementById("update_discount").value;
				var objDiscount = parent.document.getElementsByName("detail_discount");
				if(objDiscount != null){
					for(var i=0; i<objDiscount.length; i++){
						objDiscount[i].value = val;
						parent.doCalPrice(obj,i+1,1);				
					}				
				}
				parent.hideMe();
			}
			function cancelMd(){
				parent.hideMe();
			}			 
		</script>
	</head>
	<body>
		<div style="background-color:White;ovoverflow-y:scroll;width:100%;height:100%">			
			<table  border="0" cellspacing="0" >
				<tr>
					<td width="50"  align="center">折扣率</td>
					<td width="50"  align="center">
					<input type="text" id="update_discount" name="update_discount" value="0.00" onchange="subReduNum(this,2);" onkeypress="javascript:keyPress(this);">
					</td>				
				</tr>			
			</table>			
			<p></p>
			<div align="center">
				<input type="button" class="buttonok" value="确定"  onclick="javascript:confirmMd(this);"/>
					&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="buttoncan" value="取消" onclick="javascript:cancelMd();"/>
			</div>
		</div>
		<script language="javascript" type="text/javascript">
			//折扣率
			var discount = document.getElementsByName("update_discount");
			subReduNum(discount[0],2);
		</script>
	</body>
</html>

